package com.enhe.gck.communal;

/**
 * @Author 褚波
 * @Date 2024-04-15 10:03:36
 * @Description 响应code 枚举
 */
public enum ResultCode {

    ZERO(0, "失败"),
    ONE(1, "成功"),
    TWO(2, "失败但业务可以继续"),
    THREE(3, "失败业务不可以继续"),
    Mysql_Exception(99999, "数据库操作异常"),
    ;

    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
